-
Notifications
You must be signed in to change notification settings - Fork 30
Fix for gh-2121 #2122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for gh-2121 #2122
Conversation
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_58 ran successfully. |
pass copy_order, not order
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_59 ran successfully. |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_60 ran successfully. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ndgrigorian, LGTM!
This PR proposes a fix for gh-2121, which is caused by underlying memory of a boolean array not necessarily representing only 0s and 1s, in particular when it is a view from a non-boolean array
This PR adds a path to astype that guarantees
astype(a, "?")
will give an output array of only 0 and 1